<template>
  <div class="m-hcity">
    <dl>
      <dt>热门城市</dt>
      <dd
        v-for="(item,idx) in hotCity"
        :key="idx"
      >
        <nuxt-link to="#">{{ item.name==='市辖区'?item.province:item.name }}</nuxt-link>
      </dd>
    </dl>
  </div>
</template>
<script>
export default {
  data() {
    return {
      hotCity: []
    }
  },
  async mounted() {
    let {
      data: { hots }
    } = await this.$axios.get('/geo/hotCity')
    this.hotCity = hots
  }
}
</script>
<style lang="scss">
@import '@/assets/css/changeCity/hot.scss';
</style>